<?php
/**
 * Created by PhpStorm.
 * User: mr.lee
 * Date: 2018/4/25
 * Time: 上午11:53
 */

namespace app\common\model;


use think\Model;

class CardClickput extends Model
{
    public function Paycardinfo()
    {
        return $this->belongsTo('CardPaycard', 'fid');
    }

    protected $insert = ['buytime', 'paystatu' => 0];

    protected function setBuytimeAttr()
    {
        return time();
    }
    
}